package org.iteye.bbjava.action;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.ServletActionContext;

public class DownLoadAction {
	
	public String downLoad() throws FileNotFoundException{
		
		
		HttpServletRequest hsrq = ServletActionContext.getRequest();
		HttpServletResponse hsrp = ServletActionContext.getResponse();
		File filePath = new File("");
		FileInputStream fis = new FileInputStream(filePath);
		hsrp.setContentType("image/jpeg");
		//hsrp.setHeader(arg0, arg1);
		
		
		
		
		return null;
	}

}
